package com.juyu.miliao.api.domain.dto;

import com.juyu.miliao.api.domain.UserCoverUrl;

import java.util.List;

/**
 *  带距离的用户dto
 * @Auther: 卜加超
 * @Date: 2019/6/21 08:58
 * @Description:
 */
public class UserInfoDistanceDTO implements Comparable<UserInfoDistanceDTO>{
    /**
     * 主播id
     */
    private long userId;
    /**
     * 主播昵称
     */
    private String nickName;

    private String icon;

    private int isHost;
    /**
     * 主播封面
     */
    private String userCoverUrl;
    private List<UserCoverUrl> userCoverUrlList;
    /**
     * 主播视频价格
     */
    private String videoPrice;
    /**
     * 距离
     */
    private String distance;
    /**
     * 排序字段
     */
    private int sort;

    /**
     * 在线状态
     */
    private int isLine;

    /**
     * 主播等级
     */
    private int userLevel;
    /**
     * 主播等级图片
     */
    private String userLevelPic;
    /**
     * 主播等级名字
     */
    private String userLevelName;

    public int getIsHost() {
        return isHost;
    }

    public void setIsHost(int isHost) {
        this.isHost = isHost;
    }

    public int getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(int userLevel) {
        this.userLevel = userLevel;
    }

    public String getUserLevelPic() {
        return userLevelPic;
    }

    public void setUserLevelPic(String userLevelPic) {
        this.userLevelPic = userLevelPic;
    }

    public String getUserLevelName() {
        return userLevelName;
    }

    public void setUserLevelName(String userLevelName) {
        this.userLevelName = userLevelName;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getIsLine() {
        return isLine;
    }

    public void setIsLine(int isLine) {
        this.isLine = isLine;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }


    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserCoverUrl() {
        return userCoverUrl;
    }

    public void setUserCoverUrl(String userCoverUrl) {
        this.userCoverUrl = userCoverUrl;
    }

    public List<UserCoverUrl> getUserCoverUrlList() {
        return userCoverUrlList;
    }

    public void setUserCoverUrlList(List<UserCoverUrl> userCoverUrlList) {
        this.userCoverUrlList = userCoverUrlList;
    }

    public String getVideoPrice() {
        return videoPrice;
    }

    public void setVideoPrice(String videoPrice) {
        this.videoPrice = videoPrice;
    }

    @Override
    public int compareTo(UserInfoDistanceDTO o) {
        return this.sort - o.getSort() ;
    }
}
